import subprocess
from django.core.management.base import BaseCommand


class Command(BaseCommand):
    help = 'Starts Scrapyd service'

    def handle(self, *args, **options):
        # 启动 Scrapyd 服务
        subprocess.Popen(['scrapyd'])
